
<div class="auto">
  <div class="subnav">
    <ul class="crumbs">
        <li>我的位置：</li>
        <li><a href="{$site_url}">{$site_name} </a> </li>
        <li><a href="{$Categorys[$catid]['url']}">&nbsp; &gt; {$Categorys[$catid]['catname']} </a></li>
       
        <div class="clear"></div>
    </ul>
 
</div>
      <table class="classify">
        <!--<tr>
            <th>风格：</th>
            <td><ul>
                <li><a href="{:unsetParam('style',$url_s)}" <?php if(empty($_GET['style'])){ ?> class="whole" <?php } ?>>不限</a></li>
                <YP:list name="Label" where="genre=21" id="r" order="listorder asc" limit="50">
                    <li><a <?php if($_GET['style']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('style',$url_s)}&style={$r['id']}">{$r['title']}</a></li>
                </YP:list>
                <div class="clear"></div>
            </ul></td>
        </tr>-->
        <tr>
            <th>类型：</th>
            <td ><ul style=" border-bottom: none;">
                <li><a href="{:unsetParam('itemType',$url_s)}" <?php if(empty($_GET['itemType'])){ ?> class="whole" <?php } ?>>不限</a></li>
                <YP:list name="Label" where="genre=17" id="r" order="listorder asc" limit="50">
                    <li><a <?php if($_GET['itemType']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('itemType',$url_s)}&itemType={$r['id']}">{$r['title']}</a></li>
                </YP:list>
                <div class="clear"></div>
            </ul></td>
        </tr>
       
    </table>
  <div class="wind_zong">
  
      <volist name="list" id="r"  key="k">
          <div class="wind_xglist2">
           <a href="index.php?g=Home&m=Case&a=show&id={$r.id}" id="keep_url"> <img width="258" height="220"  src="{$r.thumb_list}" /></a>
            <ul>
              <li class="wind_xglist2son1">{$r.title}</li>
              <li class="wind_xglist2son2">
                <span>{$r['createtime']|remianday=###}</span>
                <span style="float:right;">
                  <a class="wind_xglist2son2a1">&nbsp;&nbsp;{$r.hits}</a>
                  <a class="wind_xglist2son2a2">&nbsp;{$r.com_num}</a>
                  <a href="javascript:onclick=keep({$r.id})" class="wind_xglist2son2a3" >&nbsp;<span id="keep_n{$r.id}">{$r.keep_num}</span></a>
                </span>
              </li>
            </ul>
          </div>
       </volist>
      
      
      
      <div style="clear:both;"></div>

        <ul class="paging" style=" height:30px; text-align:center">
            <ul>
           {$pages}
           </ul>
        </ul>      
  </div>
</div>
</div>


<script>
function  keep(id){
	
	
		  var module='Case';
		  var catid='2'
		  var url=$("#keep_url").attr('href');
		  var title=$(".wind_xglist2son1").html();
		 
      //alert(title);
		  //var userid=$("#keep_u").attr('name');
		 // alert(userid)
	
		  $.post(
				  'index.php?g=User&m=Index&a=keep', 
				  {'id':id,
				   'module':module,
				   'url':url,
				   'title':title,
				   'catid':2
				  },
				  function(res){
					 if(res.length>1000){
						 alert('您还未登录，请您先登录');
						 } else{
							 alert(res);
							 if(res=='收藏成功!'){
							  var keepnum=parseInt($("#keep_n"+id).html())+1;
							  $("#keep_n"+id).html(keepnum);
							  }
						 }
					 
					});
	  
	}





</script>



                                                                                                                                                                                                                                                                                                